import Vue from 'vue'
import VueRouter from 'vue-router'
import HomeView from '../views/HomeView/index.vue'

Vue.use(VueRouter)

export const routes = [
  {
    path: '/',
    name: 'home',
    component: HomeView,
    meta: {
      title: "首页"
    }
  },
  {
    path: '/key-chunk-manage',
    name: 'keyChunk',
    meta: {
      title: "密钥空间"
    },
    component: function () {
      return import(/* webpackChunkName: "about" */ '../views/KeyChunkView/index.vue')
    }
  },
  {
    path: '/node-computer-manage',
    name: 'NdoeComputer',
    meta: {
      title: "节点计算机"
    },
    component: function () {
      return import(/* webpackChunkName: "about" */ '../views/NodeComputerView/index.vue')
    }
  }
]

const router = new VueRouter({
  routes
})

export default router
